package java44th.group.controller.admin.log;

import java44th.group.bean.admin.vo.BaseRespVo;
import java44th.group.bean.admin.vo.log.LogList;
import java44th.group.service.admin.log.MarketlogService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Aurhor: 王可龙
 * @DATE: 2022/10/13 14:28
 * @Package:java44th.group.controller.admin.log
 * @Description:
 * @Version 1.0
 */
@RestController
@RequestMapping("admin/log")
public class ListContorller {


    @Autowired
    MarketlogService marketlogService;
    @RequiresPermissions("*")
    @RequestMapping("list")
    public BaseRespVo list(Integer page,Integer limit,String name,String sort,String order){
        System.out.println(page+":"+limit+":"+sort+":"+order);
        LogList logList= marketlogService.list(page,limit,name,sort,order);
        return BaseRespVo.ok(logList);
    }

}
